﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Developer.Core.FrameWork.MicroClients.Attributes
{
    /// <summary>
    /// 微服务客户端特性
    /// </summary>
    [AttributeUsage(AttributeTargets.Interface)]
    public class MicroClient:Attribute
    {
        /// <summary>
        /// url协议
        /// </summary>
        public string UrlScheme { get; set; }

        /// <summary>
        /// 服务名称
        /// </summary>
        public string ServiceName { get; set; }

        public MicroClient(string UrlScheme,string ServiceName)
        {
            this.UrlScheme = UrlScheme;
            this.ServiceName = ServiceName;
        }
    }
}
